home *** CD-ROM | disk | FTP | other *** search
- Path: engnews1.Eng.Sun.COM!taumet!clamage
- From: mlg@scr.siemens.com (Michael Greenberg)
- Newsgroups: comp.std.c++
- Subject: When can definitions of library functions be provided by a program?
- Date: 31 Jan 1996 20:44:58 GMT
- Organization: Siemens Corporate Research, Princeton, NJ
- Sender: news@scr.siemens.com (NeTnEwS)
- Approved: clamage@eng.sun.com (comp.std.c++)
- Message-ID: <DM2Bv9.C7p@scr.siemens.com>
- NNTP-Posting-Host: taumet.eng.sun.com
- X-Nntp-Posting-Host: tucker.scr.siemens.com
- Originator: clamage@taumet
-
- I'm trying to figure out under what circumstances a program can supply
- a definition for a library function. Is it the case that a program
- cannot supply a definition for any library function except for those
- listed in 17.3.3.4 (new & delete with various signatures)?
-
- In other words (typos not withstanding), is
-
- #include <string.h>
-
- int std::strlen(const char*) { ... }
-
- legal? What if <string.h> is not included?
-
- (As an aside, what's the 'C' standard have to say about this?)
-
- Thanks,
-
- --
- Michael Greenberg email: mgreenberg@scr.siemens.com
- Siemens Corporate Research phone: 609-734-3347
- 755 College Road East fax: 609-734-6565
- Princeton, NJ 08540
-
- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
- Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
- is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
-
-